package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import com.tanhua.model.mongo.Movement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;

import java.util.List;

public interface CommentApi {
    //发布评论
    Integer save(Comment comment1);
    //分页查询
    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);
    //判断comment数据是否存在
    Boolean hasComment(String id, Long userId, CommentType like);
    //删除
    Integer delete(Comment comment);
}
